package com.ruoyi.device.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备分类对象 device_category
 * 
 * @author silence
 * @date 2025-07-19
 */
public class DeviceCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 电压等级(如:10kV,35kV,110kV,220kV等) */
    @Excel(name = "电压等级(如:10kV,35kV,110kV,220kV等)")
    private String voltageLevel;

    /** 设备类型(变压器/断路器/隔离开关/电缆等) */
    @Excel(name = "设备类型(变压器/断路器/隔离开关/电缆等)")
    private String deviceType;

    /** 分类描述 */
    @Excel(name = "分类描述")
    private String description;

    /** 排序 */
    private Long sort;

    /** 设备基本信息信息 */
    private List<DeviceInfo> deviceInfoList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setVoltageLevel(String voltageLevel) 
    {
        this.voltageLevel = voltageLevel;
    }

    public String getVoltageLevel() 
    {
        return voltageLevel;
    }

    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public List<DeviceInfo> getDeviceInfoList()
    {
        return deviceInfoList;
    }

    public void setDeviceInfoList(List<DeviceInfo> deviceInfoList)
    {
        this.deviceInfoList = deviceInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryName", getCategoryName())
            .append("voltageLevel", getVoltageLevel())
            .append("deviceType", getDeviceType())
            .append("description", getDescription())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("deviceInfoList", getDeviceInfoList())
            .toString();
    }
}
